﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum ShopType
    {
        /// <summary>
        /// 武器npc
        /// </summary>
        武器的,
        /// <summary>
        /// 材料npc
        /// </summary>
        材料的,
        /// <summary>
        /// 食物npc
        /// </summary>
        食物的
    }
    class ShopNpc:Npc
    {
        private string item;
        private ShopType shopType;
        private string ShopInfo;

        public ShopNpc(string name, NpcType type, string item, ShopType shopType, string ShopInfo) : base(name, type)
        {
            this.item = item;
            this.shopType = shopType;
            this.ShopInfo = ShopInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("NPC:{0},你需要的是:{1},我是负责：{2}，ps:{3}", base.Name, this.item, this.shopType, this.ShopInfo);
            Console.WriteLine("-------------------------------");
        }
    }
}
